<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<title>登录</title>
		<link rel="stylesheet" href="#(ctx)/manage/_assets/libs/layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="#(ctx)/manage/_assets/css/login/login.css" />
		<link rel="stylesheet" href="#(ctx)/manage/_assets/css/login/normalize.css" />
	</head>

	<body class="beg-login-bg">
		<div class="beg-login-box">
			<header>
				<h1>后台管理</h1>
			</header>
			<div class="beg-login-main">
				#if(errMsg)
				<div class="layui-form-mid" style="color: red">#(errMsg)</div>
				#end
				<form action="#(ctx)/manage/login" class="layui-form" method="post">
					<div class="layui-form-item">
						<label class="beg-login-icon"><i class="layui-icon layui-icon-username"></i></label>
						<input type="text" name="account" lay-verify="required" autocomplete="off" placeholder="这里输入账号" class="layui-input" value="#(account)">
					</div>
					<div class="layui-form-item">
						<label class="beg-login-icon"><i class="layui-icon layui-icon-password"></i></label>
						<input type="password" name="password" lay-verify="required" autocomplete="off" placeholder="这里输入密码" class="layui-input">
					</div>
					<div class="layui-form-item">
						<div class="layui-row">
							<div class="layui-col-xs7">
								<label class="beg-login-icon"><i class="layui-icon layui-icon-vercode"></i></label>
								<input type="text" name="captcha" lay-verify="required" autocomplete="off" placeholder="输入验证码" class="layui-input">
							</div>
							<div class="layui-col-xs5">
								<div style="margin-left: 10px">
									<img src="#(ctx)/captcha" onclick="this.src='#(ctx)/captcha?t='+(new Date()).getTime();" style="max-height: 38px">
								</div>
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="beg-pull-left beg-login-remember">
							<label>记住帐号？</label>
							<input type="checkbox" name="rememberMe" value="true" lay-skin="switch" checked title="记住帐号">
						</div>
						<div class="beg-pull-right">
							<button class="layui-btn layui-btn-primary" lay-submit lay-filter="login">
								<i class="layui-icon layui-icon-face-smile"></i>&nbsp;登录
							</button>
						</div>
						<div class="beg-clear"></div>
					</div>
				</form>
			</div>
			<footer>
				<p></p>
				<p><a href="https://my.oschina.net/u/1175852" target="_blank">© 2018 Golly Apache v2 License</a><a style="padding-left: 20px" href="https://gitee.com/gollyhu/JFSimpleAdmin" target="_blank">码云</a></p>
			</footer>
		</div>
		<script type="text/javascript" src="#(ctx)/manage/_assets/libs/layui/layui.js"></script>
		<script>
			layui.use(['layer', 'form'], function() {
				var layer = layui.layer,
					$ = layui.jquery,
					form = layui.form;

				form.on('submit(login)',function(data){
					return true;
				});
			});
		</script>
	</body>

</html>